import {getBannerAPI} from '@/network/home.js'
import {ref, onMounted} from 'vue'

export function useBanner() {
    
    const bannerList = ref([])
   async function getBanner() {
        const res = await getBannerAPI({
             distributionSite: '2'
         })
        // console.log(res);
        bannerList.value = res.result
    }

    onMounted(() => {
        getBanner()
    })

    return {bannerList}
}